package com.erp.gather.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.ruoyi.common.core.annotation.ExcelDictFormat;
import com.ruoyi.common.core.convert.ExcelDictConvert;
import lombok.Data;

import java.util.Date;


/**
 * 采集商品任务2.0视图对象 erp_collect_product_task_2.0
 *
 * @author erp
 * @date 2023-08-28
 */
@Data
@ExcelIgnoreUnannotated
public class ErpCollectProductTask20Vo {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @ExcelProperty(value = "主键")
    private Long id;

    /**
     * 采集链接
     */
    @ExcelProperty(value = "采集链接")
    private String collectUrl;

    /**
     * 采集类型（1速卖通）
     */
    @ExcelProperty(value = "采集类型", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "1=速卖通")
    private String category;

    /**
     * 采集状态（-1页面未找到 0待命 1进行中 2完成 3采集异常 4保存异常）
     */
    @ExcelProperty(value = "采集状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "-=1页面未找到,0=待命,1=进行中,2=完成,3=采集异常,4=保存异常")
    private String status;

    /**
     * 是否需要优化（0否 1是）
     */
    @ExcelProperty(value = "是否需要优化", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=否,1=是")
    private Integer isOptimize;

    /**
     * 是否需要翻译（0否 1是）
     */
    @ExcelProperty(value = "是否需要翻译", converter = ExcelDictConvert.class)
    @ExcelDictFormat(readConverterExp = "0=否,1=是")
    private Integer isTranslate;

    /**
     * 乐观锁
     */
    @ExcelProperty(value = "乐观锁")
    private String revision;

    /**
     * 采集人
     */
    @ExcelProperty(value = "采集人")
    private String collectDuration;

    /**
     * 采集人
     */
    @ExcelProperty(value = "采集人")
    private String collectBy;

    /**
     * 采集时间
     */
    @ExcelProperty(value = "采集时间")
    private Date collectTime;

    /**
     * 采集人员id
     */
    @ExcelProperty(value = "采集人员id")
    private Long collectUserId;
    
    private String collectUserName;
    
    private String createBy;


}
